package com.willcode.demo.aop;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;


/**
 * @author Will
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class ClientSideTest {

    @Autowired
    private Demo4Aop demo4op;

    public void test() {
        System.out.println("demo4AOP值-" + demo4op);
        String s = demo4op.testDemo("测试AOP切面");
        System.out.println(s);
    }

    @Test
    public void test42Args() {
        System.out.println("demo4AOP值-" + demo4op);
        String s = demo4op.testDemo42Args("测试AOP切面", 2408);
        System.out.println(s);
    }
}
